package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"LazyPig/pkg/conf"
	router2 "LazyPig/router"
	"net/http"
)
// @title LvTwo API
// @version 1.0.0
// @description Alpha
// @BasePath /
func main() {
	gin.SetMode(conf.RunMode)
	router := router2.InitRouter()

	s := &http.Server{
		Addr:           fmt.Sprintf(":%d", conf.HttpPort),
		Handler:        router,
		ReadTimeout:    conf.ReadTimeout,
		WriteTimeout:   conf.WriteTimeout,
		MaxHeaderBytes: 1 << 20,
	}
	s.ListenAndServe()
}

